/*
 * FunctionUnit.hpp Create by ws
 * data: 2010-11-20
 */

#ifndef FUNCTIONUNIT_HPP
#define FUNCTIONUNIT_HPP
#include<string>

class Region;
class FunctionUnit{
	std::string name;
	Region * entry;
	Region * exit;
public:
	Region* get_start();
	Region* get_exit();
	FunctionUnit(std::string name, Region * entry, Region* exit);	
	void code_gen();
	~FunctionUnit();
};

#endif
